package org.example.utils;

import java.util.UUID;

public class FileUtil {


    public static String getFileName(String fileName) {
        return System.currentTimeMillis()  + "-" + fileName;
    }


    public static String getSuffix(String remoteFilePath) {
        if (remoteFilePath.contains(".")){
            return remoteFilePath.substring(remoteFilePath.lastIndexOf("."));
        }
        return "";
    }

    public static void mkdir(String localTmpFilePath) {
        cn.hutool.core.io.FileUtil.mkdir(localTmpFilePath);
    }


}
